package com.ldw.desensitizer.controller;


import com.ldw.desensitizer.model.User;
import com.ldw.desensitizer.service.IUserService;
import com.ldw.desensitizer.service.annotation.Desensitizer;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;

import org.springframework.web.bind.annotation.RestController;


import java.util.List;

/**
 * <p>
 * 用户表 前端控制器
 * </p>
 *
 * @author ldw
 * @since 2022-08-17
 */
@RestController
@RequestMapping("/user")
public class UserController {

    @Autowired
    private IUserService userService;

    @RequestMapping("/queryAllUser")
    @Desensitizer
    public List<User> queryAllUser() {
        return userService.queryAllUser();
    }
}
